/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except in
 * compliance with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.adastros.buildingmanager.model;

import javax.jdo.annotations.PersistenceCapable;

@PersistenceCapable
public class Address {

  private String street;
  private String externalNumber;
  private String interenalNumber;
  private String zip;
  
  private String city;
  private String state;
  private String country ;
  
  public Address() {
    this(null, null, null, null, null, null, null);
  }

  public Address(String street, String externalNumber, String internalNumber, String zip, String city, String state, String country) {
    this.street = street;
    this.externalNumber = externalNumber ;
    this.interenalNumber = internalNumber ;
    this.zip = zip;
    
    this.city = city;
    this.state = state;
    this.country = country ;
  }

  public String getStreet() {
    return street;
  }

  public String getCity() {
    return city;
  }

  public String getState() {
    return state;
  }

  public String getZip() {
    return zip;
  }

  /**
   * @param street the street to set
   */
  public void setStreet(String street) {
    this.street = street;
  }

  /**
   * @param city the city to set
   */
  public void setCity(String city) {
    this.city = city;
  }

  /**
   * @param state the state to set
   */
  public void setState(String state) {
    this.state = state;
  }

  /**
   * @param zip the zip to set
   */
  public void setZip(String zip) {
    this.zip = zip;
  }

  /**
   * @return the externalNumber
   */
  public String getExternalNumber() {
    return externalNumber;
  }

  /**
   * @param externalNumber the externalNumber to set
   */
  public void setExternalNumber(String externalNumber) {
    this.externalNumber = externalNumber;
  }

  /**
   * @return the interenalNumber
   */
  public String getInterenalNumber() {
    return interenalNumber;
  }

  /**
   * @param interenalNumber the interenalNumber to set
   */
  public void setInterenalNumber(String interenalNumber) {
    this.interenalNumber = interenalNumber;
  }

  /**
   * @return the country
   */
  public String getCountry() {
    return country;
  }

  /**
   * @param country the country to set
   */
  public void setCountry(String country) {
    this.country = country;
  }

  @Override
  public String toString() {
    return "Address{\n" + "street=" + street + ",\n externalNumber=" + externalNumber + ",\n interenalNumber=" + interenalNumber + ",\n zip=" + zip + ",\n city=" + city + ",\n state=" + state + ",\n country=" + country + "\n}";
  }
}
